package cn.stylefeng.guns.modular.cb.mapper;

import cn.stylefeng.guns.modular.cb.entity.CbMessages;
import cn.stylefeng.guns.modular.cb.model.params.CbMessagesParam;
import cn.stylefeng.guns.modular.cb.model.result.CbCustomerStudentsResult;
import cn.stylefeng.guns.modular.cb.model.result.CbMessagesResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ss
 * @since 2021-01-19
 */
public interface CbMessagesMapper extends BaseMapper<CbMessages> {

    /**
     * 获取列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    List<CbMessagesResult> customList(@Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 获取map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbMessagesResult> customPageList(@Param("page") Page page, @Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>   getResumeMessageList(@Param("page") Page page, @Param("paramCondition") CbMessagesParam paramCondition);
    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>   getStaffResumeMessageList(@Param("page") Page page, @Param("paramCondition") CbMessagesParam paramCondition);


    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>   getOtherMessageList( @Param("page") Page page, @Param("paramCondition") CbMessagesParam paramCondition);
    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>   getStaffOtherMessageList(@Param("page") Page page,  @Param("paramCondition") CbMessagesParam paramCondition);
    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>   getStudentOtherMessageList(@Param("page") Page page,  @Param("paramCondition") CbMessagesParam paramCondition);
    /**
     * 获取系统消息map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>   getSysMessageList(@Param("page") Page page,  @Param("paramCondition") CbMessagesParam paramCondition);



    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<Map<String, Object>>  getInvitationMessageList(@Param("page") Page page, @Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 是否成功交互过联系方式
     * @param paramCondition
     * @return
     */
    Integer getContactFlg(@Param("paramCondition") CbMessagesParam paramCondition);
    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    List<CbCustomerStudentsResult>  getStudentBySchoolNoList(@Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 消息类型数量
     * @param paramCondition
     * @return
     */
    Integer getCountByType(@Param("paramCondition") CbMessagesParam paramCondition);

    /**
     * 今日消息
     * @param paramCondition
     * @return
     */
    List<CbMessagesResult> getMessageByNow(@Param("paramCondition") CbMessagesParam paramCondition);

}
